package com.wxboot.game.eliminate.modules.service.strategy.impl;

import com.wxboot.game.eliminate.base.BombAreaPoint;
import com.wxboot.game.eliminate.base.JellyType;
import com.wxboot.game.eliminate.config.JellyConstant;
import com.wxboot.game.eliminate.modules.service.strategy.AbstractBombStrategy;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class HorizontalBombStrategy extends AbstractBombStrategy {

    @PostConstruct
    public void initRegistry() {
        registerBombStrategy(this);
    }

    @Override
    public JellyType getJellyType() {
        return JellyType.HORIZONTAL_BOMB;
    }

    @Override
    public BombAreaPoint getBombAreaPoint(int row, int col) {
        return this.generateBombing(row, 0, row, JellyConstant.CELL_NUM - 1);

    }
}
